﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TotalFreedomAngularJS
{
    public class PropertyData
    {
        public string PropertyName;
        public string Description;

        private string _expression;
        public string Expression
        {
            get
            {
                if (String.IsNullOrEmpty(_expression))
                    return PropertyName;
                else
                    return _expression;
            }

            set
            {
                _expression = value;
            }
        }

        public bool HasExpression
        {
            get
            {
                return !String.IsNullOrEmpty(_expression);
            }
        }
    }
}
